package mapper;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class userMapperTest {

    @Test
    public void test() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

        userMapper userMapper = (mapper.userMapper)applicationContext.getBean(mapper.userMapper.class);
        System.out.println(userMapper.getUserById(28));
    }
}
